package com.chenlehao.service;

import com.chenlehao.pojo.pageBean;
import com.chenlehao.pojo.user;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

public interface userService {
    // 分页操作
    pageBean pageList(int page, int pageSize);

    // 上传文件接口
    public void upload(MultipartFile image) throws IOException;

    // 上传文件到阿里云OSS
    public String uploadOSS(MultipartFile file) throws IOException;

    public String login(String username);

    // 判断用户名(密码)是否正确
    public user judge(String username);

    // 事务
    public void test() throws Exception;
}
